<template>
  <input type="text" v-model.number="num1" />
  <input type="text" v-model.number="num2" />
  和: {{ sum }}
</template>

<script>
import { ref } from "vue";
import { getSum } from "./hooks/user-sum.js";
import { getSum } from "./hooks/user-sum.js";
export default {
  setup() {
    let num1 = ref(0);
    let num2 = ref(0);
    let sum = getSum(num1, num2);
    return {
      num1,
      num2,
      sum,
    };
  },
};
</script>

<style></style>
